package com.designpattern.creating.builder;


public class ObjForBuilder {

    private String str1;

    private String str2;

    public ObjForBuilder addStr1(String str1){
        this.str1 = str1;
        return this;
    }

    public ObjForBuilder addStr2(String str2){
        this.str2 = str2;
        return this;
    }

    @Override
    public String toString() {
        return "ObjectForBuilder{" +
                "str1='" + str1 + '\'' +
                ", str2='" + str2 + '\'' +
                '}';
    }
}
